/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="TABELAS")
public class TabelasProteu implements Serializable{

    @Id
    @Column(name="TAB_ST_CODIGO")
    private String tabStCodigo;
    @Column(name="TAB_ST_DESCRICAO")
    private String tabStDescricao;

    public String getTabStCodigo() {
        return tabStCodigo;
    }

    public void setTabStCodigo(String tabStCodigo) {
        this.tabStCodigo = tabStCodigo;
    }

    public String getTabStDescricao() {
        return tabStDescricao;
    }

    public void setTabStDescricao(String tabStDescricao) {
        this.tabStDescricao = tabStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final TabelasProteu other = (TabelasProteu) obj;
        if ((this.tabStCodigo == null) ? (other.tabStCodigo != null) : !this.tabStCodigo.equals(other.tabStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 23 * hash + (this.tabStCodigo != null ? this.tabStCodigo.hashCode() : 0);
        return hash;
    }


}
